import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path"

// https://vitejs.dev/config/
export default defineConfig({
    base: '/timu',
    plugins: [
        vue(),
    ],
    resolve: {
        alias: {
            // 配置别名
            "@": path.resolve(__dirname, "src")
        }
    },
    server: {
        proxy: {
            '/api': {
                //target: 'http://127.0.0.1:9081',
                target: 'http://47.116.39.247:9081',
                changeOrigin: true,
            }
        }
    }
})
